package xyz.xtt.admin.listener;

import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import xyz.xtt.admin.entity.TblActivity;
import xyz.xtt.admin.entity.TblActivityLog;

import java.util.List;

/**
 * @author Jim kwok
 * @since 2025/2/28
 */
@Getter
public class AssetHandleEvent<E, T> extends ApplicationEvent {
    private final String action;

    private final List<E> list;

    private final T obj;

    public AssetHandleEvent(Object source, String method, T activity, List<E> list) {
        super(source);
        this.action = method;
        this.obj = activity;
        this.list = list;
    }
}
